import request from '@/utils/request'

const api_name = "/admin/el/elrepo"

export default {   
    getPageList(page,limit,elRepoQueryVo){
        return request({
            url:`${api_name}/${page}/${limit}`, 
            method: 'get',      //请求方式
            params: elRepoQueryVo //参数
          })
    },
//删除
    DeleteUser(id){
      return request({
        url:`${api_name}/${id}`, 
        method: 'delete',      //请求方式
      })
    },
//查询单个
    SelectByID(id){
      return request({
        url:`${api_name}/${id}`, 
        method: 'get',
      })
    },
//更新
    Updata(User){
      return request({
        url:`${api_name}`, 
        method: 'put',
        data: User
      })
    },
//添加
    Add(User){
      return request({
        url:`${api_name}`, 
        method: 'post',
        data: User
      })
    },
//批量删除
    DeleteByIds(idList){
      return request({
        url: `${api_name}/batchRemove`,
        method: `delete`,
        data: idList
      })
    },

    
}